Ext.ns('Tm.common');
Tm.common.DataReader = Ext.extend(Ext.data.JsonReader, {

	read: function(response){
		var o = Ext.decode(response.responseText);
		
		var success = o && 
			(!o.error || Ext.isEmpty(o.error) || error.trim() == "null");
		
		return {
			success: success
		};
	}
});